#ifndef __FAST_RPC_REQUEST_H__
#define __FAST_RPC_REQUEST_H__

#include <sys/time.h>
#include <unistd.h>

namespace fast_rpc
{
    constexpr size_t MAX_CLIENT_NAME_LEN = 127;

    struct Requst
    {
        struct timeval timestamp;
        char client_name[MAX_CLIENT_NAME_LEN + 1];
        size_t fragment_size; // FIFO内每个数据包的大小
    }; // struct Requst

    struct Response
    {
        struct timeval timestamp;
        char client_name[MAX_CLIENT_NAME_LEN + 1];
        size_t ret; // 0表示成功，非0表示失败
    };

} // namespace fast_rpc


#endif // __FAST_RPC_REQUEST_H__